package com.seannews.server.Dao;

import com.seannews.server.Pojo.News;
import com.seannews.server.Pojo.Newstype;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
@Mapper
public interface NewsDao {
    public List<News> getNewsall(int start,int stop,String title,String newsId,String category);
    public List<News> getNewsList(String type);
    public List<Newstype> getNewstypecount();
    public List<Newstype> getvisitbytype();
    public List<Newstype> getdatecount();
    public News getNewbyid(String newsId);
    public void Newsvisitadd(String newsId);
    public int getnewscount();
    public int getsynthesis();
    public int getvisitcount();
    public int getusercount();
    public int getnewslistcount();
    public int getnewsitemcount();
    public int gettodayvisitcount();
    public int getnewsvisitcount();
    void adduserread(String userId);
    void deletenews(String newsId);
}
